package com.carlwang.service.imp;

import java.util.List;

import com.carlwang.dao.imp.UserDaoImp;
import com.carlwang.pojo.User;
import com.carlwang.service.BasicService;

public class UserService implements BasicService<User, List> {

	private UserDaoImp mUserDao;

	@Override
	public boolean create(User pT) {
		if (null == getUserDao()) {
			setUserDao(new UserDaoImp());
		}

		return getUserDao().create(pT);
	}
	public boolean login(User pUser) {
		if (null == getUserDao()) {
			setUserDao(new UserDaoImp());
		}
		return getUserDao().login(pUser);
	}

	@Override
	public boolean update(User pT) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean delete(User pT) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List select(User pT) {
		// TODO Auto-generated method stub
		return null;
	}

	public UserDaoImp getUserDao() {
		return mUserDao;
	}

	public void setUserDao(UserDaoImp userDao) {
		mUserDao = userDao;
	}



}
